package com.qf.game;

public class Battle06 {
    public static void main(String[] args) {
        Dagger dagger = new Dagger();
        dagger.setName("死神之吻");
        dagger.setDamage(20);
        dagger.setBaojixishu(2.0);
        Hero hero = new Hero();
        hero.setPower(30);
        hero.setWeapon(dagger);
        for (int i = 0; i < 10; i++) {
            hero.attack();
        }

    }
}
